291622bb707ffdcbefb83873590ce1447a84e13d,opennms-provision/opennms-provision-persistence/src/main/java/org/opennms/netmgt/provision/persist/FilesystemForeignSourceRepository.java,FilesystemForeignSourceRepository,getRequisition,#File#,194

Before Change



    private synchronized Requisition getRequisition(File inputFile) throws ForeignSourceRepositoryException {
        try {
            return getUnmarshaller(Requisition.class).unmarshal(new StreamSource(inputFile), Requisition.class).getValue();
        } catch (Exception e) {
            throw new ForeignSourceRepositoryException("unable to unmarshal " + inputFile.getPath(), e);
        }

After Change



    private synchronized Requisition getRequisition(File inputFile) throws ForeignSourceRepositoryException {
        try {
            Unmarshaller um = getUnmarshaller(Requisition.class);
            JAXBElement<Requisition> req = um.unmarshal(new StreamSource(inputFile), Requisition.class);
            return req.getValue();
        } catch (Exception e) {
            throw new ForeignSourceRepositoryException("unable to unmarshal " + inputFile.getPath(), e);
        }